package com.watt.core.mvc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 知识库媒体素材
 */
@Data
@TableName("knowledge_qa_media")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QaMedia {

	/**素材ID*/
	@TableId(type = IdType.ID_WORKER_STR)
	private String id;
	/**素材名称*/
	private String mediaName;
	/**素材摘要*/
	private String mediaSummary;
	/**素材类型(GT:图文 IMG:图片 AU:语音 VI:视频)*/
	private String mediaType;
	/**素材链接(若本字段非空，素材文件中存储为素材的封面图片)*/
	private String mediaUrl;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	/**创建人*/
	private String createBy;
	/**更新人*/
	private String updateBy;
	/**delFlag*/
	private Integer delFlag;
}
